package com.flightcloud.ssm.user.service.impl;

import java.util.Map;

import javax.annotation.PostConstruct;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.stereotype.Service;

import com.flightcloud.ssm.user.mapper.UserMapper;
import com.flightcloud.ssm.user.service.IUserService;
import com.flightcloud.ssm.user.service.RoleService;

@Service
public class RoleServiceImpl implements RoleService{
	@Autowired
	private ApplicationContext ac;
	@PostConstruct
	public void init() {
		System.out.println(ac);
		Map<String, IUserService> map = ac.getBeansOfType(IUserService.class);
		Map<String, UserMapper> map2 = ac.getBeansOfType(UserMapper.class);
		Map<String, RoleService> map3 = ac.getBeansOfType(RoleService.class);
		System.out.println(map);
		System.out.println(map2);
		System.out.println(map3);
	}
}
